% 参考论文 https://max.book118.com/html/2019/0121/5134112024002003.shtm
x = 0;%x坐标
y = 100;%y坐标

d = 80;% Y反射镜到加工平面的垂直距离 (mm)
e = 20; % X反射镜到Y反射镜的距离( mm )

theta_x = rad2deg( atan( y / d ) );

reg = sqrt( d^2 + y^2 ) + e; 

theta_y = rad2deg( atan( x / reg ) );
L = sqrt( reg^2 + x^2 );

disp(theta_x);
disp(theta_y);
disp(L);